package com.action.ui.activity.user;

import android.widget.TextView;

import com.action.childbase.ChildBaseActivity;
import com.base.app_core.service.pressenter.XYBUPressenter;
import com.base.app_core.util.AppConstants;
import com.blankj.utilcode.util.StringUtils;
import com.xinglai.yun.R;

import butterknife.BindView;
import butterknife.OnClick;


public class DepositSuccessActivity extends ChildBaseActivity<XYBUPressenter> {

    @BindView(R.id.textView3)
    TextView textView;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_deposit_success;
    }

    @Override
    protected void initView() {
        super.initView();
        setToolBar("提现结果");
        String typeExtra = getIntent().getStringExtra(AppConstants.EXTRA.TYPE_EXTRA);
        if (!StringUtils.isEmpty(typeExtra)) {
            textView.setText("(1个工作日内到账，请留意" + typeExtra + "入账通知)");
        }
        mPresenter.fetchUserAccount();
    }

    @Override
    protected void setupComponent() {
        super.setupComponent();
        getChildViewComponent().inject(this);
    }

    @OnClick(R.id.button2)
    protected void onDeposit() {
        finish();
    }
}
